<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="stylesheet"	type="text/css"	href="<%=request.getContextPath() %>/css/tp/tpmain/tpmain.css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/tp/tpmain/tpmain.js"></script>
</head>
<body onload="javascript:pload();">
	<div class="scroll">
		<div class="slide" id="slide">
		<%
			List<Map<String, Object>> slideList=(List<Map<String, Object>>)request.getAttribute("slideList"); 
			for (Map<String, Object> map : slideList) {
		%>	
			<div class="mod_top">
				<a href="<%=map.get("sWxUserUrl") %>"><img src="<%=map.get("sPicUrl") %>"></a>
			</div>
		<%
			}
		%>
		</div>
		<div class="dotModule_new">
			<div id="slide_dot"></div>
		</div>
	</div>
	
	<%
		List<Map<String, Object>> menuList=(List<Map<String, Object>>)request.getAttribute("menuList");
		int outfor=menuList.size()/4+1;
		for(int i=0;i<outfor;i++){
	%>		
		<div class="menu">
			<%
				for(int j=0;j<4;j++){
					if(menuList.size()>0){
						Map<String, Object> map=menuList.get(0);
					%>
					<div class="mod_icon">
						<a href="<%=map.get("sWxUserUrl") %>"><img src="<%=map.get("sPicUrl") %>"></a>
						<span class="img_mid"></span>
						<div class="mod_text"><%=map.get("sContent") %></div>
					</div>
					<%
					menuList.remove(0);
					}
				}
			%>
		</div>
	<%		
		}
	%>
</body>
</html>